import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import PetInfo from '../views/PetInfo.vue'
import login from '../views/login/login.vue'
import HealthInfo from '../views/HealthInfo.vue'
import PhysicalHistory from "@/views/PhysicalHistory";
import AnnouncementManagement from "@/views/admin/announcementManagement";
import DiseaseWarning from "@/views/DiseaseWarning";
import HealthReports from "@/views/HealthReports";
import Admin from "@/views/Admin";
import CommonUser from "@/views/CommonUser";
import roleController from "@/views/roleController";
import PersonalCenter from "@/views/PersonalCenter";
import PetFile from "@/views/PetFile";
import SystemNotice from "@/views/SystemNotice";
import Vaccination from "@/views/Vaccination";
import adminInfo from "@/views/admin/adminInfo";
import PhysicalManagement from "@/views/PhysicalManagement";
import PhysicalRecord from "@/views/PhysicalRecord";

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/petInfo',
    name: 'petInfo',
    component: PetInfo
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },  {
    path: '/HealthInfo',
    name: 'HealthInfo',
    component: HealthInfo
  },
 {
  path: '/PhysicalHistory',
      name: 'PhysicalHistory',
      component: PhysicalHistory
},
  {path: '/AnnouncementManagement',
    name: 'AnnouncementManagement',
    component: AnnouncementManagement
},
  {path: '/DiseaseWarning',
    name: 'DiseaseWarning',
    component: DiseaseWarning

  },
  {path: '/HealthReports',
    name: 'HealthReports',
    component: HealthReports

  },
  {path: '/Admin',
    name: 'Admin',
    component: Admin
  },  {path: '/roleController',
    name: 'roleController',
    component: roleController
  },
  {path: '/CommonUser',
    name: 'CommonUser',
    component: CommonUser
  },
  {path: '/PersonalCenter',
    name: 'PersonalCenter',
    component: PersonalCenter
  },
  {path: '/PetFile',
    name: 'PetFile',
    component: PetFile
  },
  {path: '/SystemNotice',
    name: 'SystemNotice',
    component: SystemNotice
  },
  {path: '/Vaccination',
    name: 'Vaccination',
    component: Vaccination
  },
  {path: '/adminInfo',
    name: 'adminInfo',
    component: adminInfo
  },
{path: '/PhysicalManagement',
    name: 'PhysicalManagement',
    component: PhysicalManagement
},
  {path: '/PhysicalRecord',
    name: 'PhysicalRecord',
    component: PhysicalRecord
  }

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
